import { RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/data-set',
    component: () => import('@/views/customer/data-set/index.vue'),
    meta: { title: '数据集' },
    redirect: '/data-set/list',
    children: [
      {
        path: '/data-set/list',
        component: () => import('@/views/customer/data-set/list/index.vue'),
        redirect: '/data-set/list/public-data',
        children: [
          {
            path: '/data-set/list/public-data',
            component: () => import('@/views/customer/data-set/list/public-data/index.vue')
          },
          {
            path: '/data-set/list/favorite',
            component: () => import('@/views/customer/data-set/list/favorite/index.vue')
          }
        ]
      },
      {
        path: '/data-set/public-data-detail/:id',
        component: () => import('@/views/customer/data-set/public-data-detail/index.vue')
      }
    ]
  }
]

export default routes
